<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
        <link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}">
        <link rel="shortcut icon" type="image/vnd.microsoft.icon" href="https://avatar.moonshot.cn/avatar/cmri3mecp7fdvr21ch3g" />
    <title>注册</title>
</head>
<body class="center">


    {% with messages = get_flashed_messages() %}
    {% if messages %}
        <ul>
        {% for message in messages %}
            <li>{{ message }}</li>
        {% endfor %}
        </ul>
    {% endif %}
{% endwith %}

    <form method="POST">
        <h1>注册</h1>
        <label for="username">用户:</label>
        <input type="text" name="username" style="width: 70%" required>
        <br>
        <br>
        <label for="password">密码:</label>
        <input type="password" name="password" style="width: 70%" required>
        <br>
        <div style="display: flex; justify-content: center;">
    <button type="submit">注册</button>
</div>
        <div style="display: flex; justify-content: center;">
        <p>已有账户？<a href="{{ url_for('login') }}">登录</a></p>
        </div>
    </form>


</body>
</html>
